<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Views/Shared/Site.Master" %>

<asp:Content runat="server" ID="Content1" ContentPlaceHolderID="TitleContent">Help | Decision Making Simulation System</asp:Content>

<asp:Content runat="server" ID="Content3" ContentPlaceHolderID="MainContent">
<script type="text/javascript">
    function getUrlVars()
    {
        var vars = [], hash;
        var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
        for(var i = 0; i < hashes.length; i++)
        {
            hash = hashes[i].split('=');
            vars.push(hash[0]);
            vars[hash[0]] = hash[1];
        }
        return vars;
    }

    $(document).ready(function () {
        var topic = getUrlVars().topic;
       
        $('html, body').animate({
            scrollTop: $('a[name="' + topic + '"]').offset().top
        }, 500);

    });
</script>
<div id="help">
    <h2><a name="Environments.Index">Main page - Environments</a></h2>
    <p>In this page you can view or edit your Environments, as well as running simulation on them or creating new ones, either from scratch or by importing a well-formed CSV file.</p>

    <h2><a name="Environments.Add">Add Environment</a></h2>
    <p>To create a new Environment you must enter its name, which should be unique, and the name of the independent variable you're investigating. You should also enter a short description
    of this Environment for future reference. If you check "Make simulation results public", all users will be able to view reports on your Environment.</p>

    <h2><a name="Environments.Edit">Edit Environment</a></h2>
    <p>Once you've created an Environment you may still edit its details, as long as you don't attempt to rename it to a name that's already in use in the context of your account.</p>

    <h2><a name="CueAttributes.List">Manage Cue Attributes</a></h2>
    <p>After creating an Environment, the next step is to define Cue Attributes - that is, variables that describe your Cues. Cue Attributes will later be available for use when you
    code your Algorithms. Each Environment comes preconfigured with two attributes - Ecological Validity, which stands for how much credibility this Cue holds, and Discrimination Rate, 
    which stands for how well does this Cue discriminate between Candidates. Note that if you add a Cue Attribute to an existing Environment, you should then edit all of its Cues and
    set a value for the new Attribute. Also note that we do not check your Algorithm for correct Attribute usage - an attempt to use a non-existing attribute will result in a failed 
    execution.</p>

    <h2><a name="Cues.List">Manage Cues</a></h2>
    <p>The next step is to create Cues. For each Cue you must enter its name, its order of evaluation and values for all Cue Attributes you've defined.</p>

    <h2><a name="Candidates.List">Manage Candidates</a></h2>
    <p>You should now be ready to type in values for your Candidates. For each Candidate, you should type in its name, the real-life value for the Independent Variable
    and values for all Cues you've defined earlier.</p>

    <h2><a name="Agents.List">Generate Agents</a></h2>
    <p>Finally, you should generate a significant amount of Agents, each will randomally be assigned a number of recognized Candidates, and within each one, a number of known Cue values. 
    If you attempt to re-generate Agents, all previous agents in the Environment will be deleted first.</p>

    <h2><a name="Algorithms.Index">Manage Algorithms</a></h2>
    <p>In this page you can view all public Algorithms or create your own copies of them, as well as create private Algorithms of your own. To help you find your way around when creating
    a new Algorithm, the form includes a short help message describing the available variables in the execution context.</p>

    <h2><a name="Reports.Index">View Reports</a></h2>
    <p>You may choose between three types of reports:</p> 
    <ul>    
        <li>Algorithm Performance Comparison, which charts together all Algorithms that have run on the specified Environment and compares their performance in terms of recognized Candidates
        against correct inferences.</li>
        <li>Average Proportion of Correct Inferences, which displays a tabular version of the previous report, while grouping the result by the perentage of known Cue values.</li>
        <li>Single Algorithm Perfomance, which shows the percentag of correct inferences by the number of known Cue values and recognized Candidates.</li>
    </ul>

    <h2><a name="Account.Profile">Edit Profile</a></h2>
    <p>Here you may edit your personal details as well as provide a short biography of yourself.</p>
</div>
</asp:Content>
